form method = 'get'
  .panel.panel-default
    .panel-heading

    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 配件编号
	          th 配件名称
	          th 分类名称
	          th 库存数量
	          th 单位
	          th 单位成本
	          th 库存金额
	          
	        -@inventories.each do |i|
	          tr
	            td = i.part.code
	            td = i.part.name
	            td = i.part.part_style.name
	            td = i.qty
	            td = i.part.unit
	            td = i.part.purchase_price
	            td = i.amount

	       
	          

          